/********************************************************************* * #### Twitter Post Fetcher v12.0 #### * Coded by Jason Mayes 2013. A present to all the developers out there. * www.jasonmayes.com * Please keep this disclaimer with my code if you use it. Thanks. :-) * Got feedback or questions, ask here: * http://www.jasonmayes.com/projects/twitterApi/ * Github: https://github.com/jasonmayes/Twitter-Post-Fetcher * Updates will be posted to this site. *********************************************************************/ var twitterFetcher=function(){function w(a){return a.replace(/]*>(.*?)<\/b>/gi,function(a,f){return f}).replace(/class=".*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function m(a,c){for(var f=[],g=new RegExp("(^| )"+c+"( |$)"),h=a.getElementsByTagName("*"),b=0,k=h.length;bk&&(a.splice(k,a.length-k),f.splice(k,f.length-k),g.splice(k,g.length-k),b.splice(k,b.length-k),h.splice(k,h.length-k));c=[];e=a.length;for(b=0;b'+w(f[b].innerHTML)+""),d+='

'+w(a[b].innerHTML)+"

",q&&(d+='

'+g[b].getAttribute("aria-label")+"

")):a[b].innerText?(r&&(d+='

'+f[b].innerText+"

"),d+= '

'+a[b].innerText+"

",q&&(d+='

'+g[b].innerText+"

")):(r&&(d+='

'+f[b].textContent+"

"),d+='

'+a[b].textContent+"

",q&&(d+='

'+g[b].textContent+"

"));A&&(d+='

');B&&void 0!==h[b]&&(l=h[b],void 0!==l?(l=l.innerHTML.match(/data-srcset="([A-z0-9%_\.-]+)/i)[0],l=decodeURIComponent(l).split('"')[1]):l=void 0,d+='
Image from tweet
');c.push(d);b++}if(null===v){a=c.length;f=0;g=document.getElementById(x);for(h="
    ";f"+c[f]+"",f++;g.innerHTML=h+"
"}else v(c);s=!1;0